#include "widget.h"
#include "server.h"
#include <QApplication>
#include <QLabel>
#include <QPixmap>




int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    HttpServer* httpServer = HttpServer::getInstance();
    bool ok = httpServer->init();
    if(!ok)
    {
        qDebug() << "HTTP服务器启动失败!";
        return -1;
    }
    qDebug() << "HTTP服务器启动成功!";
    WebSocketServer *webSocketServer = WebSocketServer::getInstance();
    if(!webSocketServer->init())
    {
        qDebug() << "WebSocket服务器启动失败!";
        return -1;
    }

    Widget w;
    w.show();
    return a.exec();

}
